package cn.com.roy.thread.t3_1_13.pipereaderwriter;



import java.io.PipedInputStream;
import java.io.PipedReader;

public class ThreadRead extends Thread{
    private PipedReader pipedReader;
    private ReadData readData;

    public ThreadRead(ReadData readData , PipedReader pipedReader){
        this.pipedReader = pipedReader;
        this.readData = readData;
    }

    @Override
    public void run() {
        super.run();
        readData.readData(pipedReader);
    }
}
